﻿@using _1._8._2015_KidChores.Models
@model KidsViewModel
@{
    ViewBag.Title = "Kids";
}

<h2>Kids</h2>

<div class="row">
    <div class="col-md-12">
        <table class="table table-striped table-bordered">
            <tr>
                <th>Kid Name</th>
                <th></th>
            </tr>
            @foreach (var k in Model.Kids)
            {
                <tr>
                    <td>@(k.FirstName + " " + k.LastName)</td>
                    <td>@(Html.ActionLink("Edit Kid", "EditKid", new { id = @k.KidId }))</td>
                     
                </tr>                
            }
            
        </table>


    </div>

</div>
